﻿using System;
using System.Data;
using System.Data.Common;
using Hxj.Data;
using Hxj.Data.Common;

namespace RecruitStudents.Utility.Model
{

	/// <summary>
	/// 实体类TB_Sys_SpecialityLevelTypeMapping 。(属性说明自动提取数据库字段的描述信息)
	/// </summary>
	[Serializable]
	public class TB_Sys_SpecialityLevelTypeMapping : Entity 
	{
		public TB_Sys_SpecialityLevelTypeMapping():base("TB_Sys_SpecialityLevelTypeMapping") {    _SpecialityLevelTypeMappingID=Guid.NewGuid().ToString();}

		#region Model
		private string _SpecialityLevelTypeMappingID;
		private string _SpecialityLevelMappingID;
		private string _GradeTypeNO;
		private string _GradeTypeName;
		private string _IsPad;
		private string _PadScoreTpye;
		private string _CalculateScoreID;
		private string _ExamYear;
		/// <summary>
		/// 
		/// </summary>
		public string SpecialityLevelTypeMappingID
		{
			get{ return _SpecialityLevelTypeMappingID; }
			set
			{
				this.OnPropertyValueChange(_.SpecialityLevelTypeMappingID,_SpecialityLevelTypeMappingID,value);
				this._SpecialityLevelTypeMappingID=value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string SpecialityLevelMappingID
		{
			get{ return _SpecialityLevelMappingID; }
			set
			{
				this.OnPropertyValueChange(_.SpecialityLevelMappingID,_SpecialityLevelMappingID,value);
				this._SpecialityLevelMappingID=value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string GradeTypeNO
		{
			get{ return _GradeTypeNO; }
			set
			{
				this.OnPropertyValueChange(_.GradeTypeNO,_GradeTypeNO,value);
				this._GradeTypeNO=value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string GradeTypeName
		{
			get{ return _GradeTypeName; }
			set
			{
				this.OnPropertyValueChange(_.GradeTypeName,_GradeTypeName,value);
				this._GradeTypeName=value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string IsPad
		{
			get{ return _IsPad; }
			set
			{
				this.OnPropertyValueChange(_.IsPad,_IsPad,value);
				this._IsPad=value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string PadScoreTpye
		{
			get{ return _PadScoreTpye; }
			set
			{
				this.OnPropertyValueChange(_.PadScoreTpye,_PadScoreTpye,value);
				this._PadScoreTpye=value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string CalculateScoreID
		{
			get{ return _CalculateScoreID; }
			set
			{
				this.OnPropertyValueChange(_.CalculateScoreID,_CalculateScoreID,value);
				this._CalculateScoreID=value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string ExamYear
		{
			get{ return _ExamYear; }
			set
			{
				this.OnPropertyValueChange(_.ExamYear,_ExamYear,value);
				this._ExamYear=value;
			}
		}
		#endregion

		#region Method
		/// <summary>
		/// 获取实体中的主键列
		/// </summary>
		public override Field[] GetPrimaryKeyFields()
		{
			return new Field[] {
				_.SpecialityLevelTypeMappingID};
		}
		/// <summary>
		/// 获取列信息
		/// </summary>
		public override Field[] GetFields()
		{
			return new Field[] {
				_.SpecialityLevelTypeMappingID,
				_.SpecialityLevelMappingID,
				_.GradeTypeNO,
				_.GradeTypeName,
				_.IsPad,
				_.PadScoreTpye,
				_.CalculateScoreID,
				_.ExamYear};
		}
		/// <summary>
		/// 获取值信息
		/// </summary>
		public override object[] GetValues()
		{
			return new object[] {
				this._SpecialityLevelTypeMappingID,
				this._SpecialityLevelMappingID,
				this._GradeTypeNO,
				this._GradeTypeName,
				this._IsPad,
				this._PadScoreTpye,
				this._CalculateScoreID,
				this._ExamYear};
		}
		/// <summary>
		/// 给当前实体赋值
		/// </summary>
		public override void SetPropertyValues(IDataReader reader)
		{
			this._SpecialityLevelTypeMappingID = DataUtils.ConvertValue<string>(reader["SpecialityLevelTypeMappingID"]);
			this._SpecialityLevelMappingID = DataUtils.ConvertValue<string>(reader["SpecialityLevelMappingID"]);
			this._GradeTypeNO = DataUtils.ConvertValue<string>(reader["GradeTypeNO"]);
			this._GradeTypeName = DataUtils.ConvertValue<string>(reader["GradeTypeName"]);
			this._IsPad = DataUtils.ConvertValue<string>(reader["IsPad"]);
			this._PadScoreTpye = DataUtils.ConvertValue<string>(reader["PadScoreTpye"]);
			this._CalculateScoreID = DataUtils.ConvertValue<string>(reader["CalculateScoreID"]);
			this._ExamYear = DataUtils.ConvertValue<string>(reader["ExamYear"]);
		}
		/// <summary>
		/// 给当前实体赋值
		/// </summary>
		public override void SetPropertyValues(DataRow row)
		{
			this._SpecialityLevelTypeMappingID = DataUtils.ConvertValue<string>(row["SpecialityLevelTypeMappingID"]);
			this._SpecialityLevelMappingID = DataUtils.ConvertValue<string>(row["SpecialityLevelMappingID"]);
			this._GradeTypeNO = DataUtils.ConvertValue<string>(row["GradeTypeNO"]);
			this._GradeTypeName = DataUtils.ConvertValue<string>(row["GradeTypeName"]);
			this._IsPad = DataUtils.ConvertValue<string>(row["IsPad"]);
			this._PadScoreTpye = DataUtils.ConvertValue<string>(row["PadScoreTpye"]);
			this._CalculateScoreID = DataUtils.ConvertValue<string>(row["CalculateScoreID"]);
			this._ExamYear = DataUtils.ConvertValue<string>(row["ExamYear"]);
		}
		#endregion

		#region _Field
		/// <summary>
		/// 字段信息
		/// </summary>
		public class _
		{
			/// <summary>
			/// * 
			/// </summary>
			public readonly static Field All = new Field("*","TB_Sys_SpecialityLevelTypeMapping");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field SpecialityLevelTypeMappingID = new Field("SpecialityLevelTypeMappingID","TB_Sys_SpecialityLevelTypeMapping","SpecialityLevelTypeMappingID");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field SpecialityLevelMappingID = new Field("SpecialityLevelMappingID","TB_Sys_SpecialityLevelTypeMapping","SpecialityLevelMappingID");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field GradeTypeNO = new Field("GradeTypeNO","TB_Sys_SpecialityLevelTypeMapping","GradeTypeNO");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field GradeTypeName = new Field("GradeTypeName","TB_Sys_SpecialityLevelTypeMapping","GradeTypeName");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field IsPad = new Field("IsPad","TB_Sys_SpecialityLevelTypeMapping","IsPad");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field PadScoreTpye = new Field("PadScoreTpye","TB_Sys_SpecialityLevelTypeMapping","PadScoreTpye");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field CalculateScoreID = new Field("CalculateScoreID","TB_Sys_SpecialityLevelTypeMapping","CalculateScoreID");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field ExamYear = new Field("ExamYear","TB_Sys_SpecialityLevelTypeMapping","ExamYear");
		}
		#endregion


	}
}

